import { useAuthStore } from '@/stores';
export const isLogin = () => {
	const authStore = useAuthStore();
	const _is = !!(authStore.profile && authStore.profile.access_token);
	return _is;
}

export const getWxUserId = () => {
	const authStore = useAuthStore() as any;
	return authStore?.profile?.userId;
}

export const getWxOpenId = () => {
	const authStore = useAuthStore() as any;
	return authStore?.profile?.openId;
}